package com.gpframework.common.pay.leshua.req;

/**
 * @author eden
 * @date 2018/5/21 下午3:36
 * @desc
 */
public class LeshuaScanCodePayReq extends LeshuaBaseReq {
	
	/** 支付类型 **/
	public String pay_way;
	
	/** 订单金额，以分为单位 **/
	public String amount;
	
	/** 是否公众号支付，0-非公众号支付，1-公众号支付 **/
	public String jspay_flag;
	
	/** 用户子标识 **/
	public String sub_openid;
	
	/** 通知地址 **/
	public String notify_url;

	/*公众号支付跳 转地址*/
	public String jump_url;
	
	/** 下单IP地址 **/
	public String client_ip;
	
	/** T0标识，1：T0，不传或传0为T1 **/
	public String t0;
	
	/** 商品描述 **/
	public String body;

	/**
	 * 公众号appid
	 */
	public String appid;
	
	/**
	 * 商户订单号
	 */
	public String third_order_id;
	
	/**
	 * 商户门店编号
	 */
	public String shop_no;
	
	/**
	 * 商户终端编号
	 */
	public String pos_no;
	
	/**
	 * 附加数据
	 */
	public String attach;
	
	/**
	 * 指定支付方式
	 */
	public String limit_pay;
	
	/**
	 * 订单优惠标记
	 */
	public String goods_tag;

	/**
	 * 订单有效时间 单位：秒
	 */
	public String order_expiration;
	
	/**
	 * SN
	 */
	public String sn;
	
	/**
	 * 
	 */
	public LeshuaScanCodePayReq(){
		this.service = "get_tdcode";
	}
	
	/**
	 * 
	 * @param merchant_id
	 * @param third_order_id
	 * @param pay_way
	 * @param amount
	 * @param jspay_flag
	 */
	@Deprecated
	public LeshuaScanCodePayReq(String merchant_id, String third_order_id, String pay_way, String amount, String jspay_flag) {
		setService("get_tdcode");
		setMerchant_id(merchant_id);
		setThird_order_id(third_order_id);
		setPay_way(pay_way);
		setAmount(amount);
		setJspay_flag(jspay_flag);
	}
	
	public String getPay_way() {
		return pay_way;
	}

	public void setPay_way(String pay_way) {
		this.pay_way = pay_way;
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getJspay_flag() {
		return jspay_flag;
	}

	public void setJspay_flag(String jspay_flag) {
		this.jspay_flag = jspay_flag;
	}

	public String getSub_openid() {
		return sub_openid;
	}

	public void setSub_openid(String sub_openid) {
		this.sub_openid = sub_openid;
	}

	public String getNotify_url() {
		return notify_url;
	}

	public void setNotify_url(String notify_url) {
		this.notify_url = notify_url;
	}

	public String getJump_url() {
		return jump_url;
	}

	public void setJump_url(String jump_url) {
		this.jump_url = jump_url;
	}

	public String getClient_ip() {
		return client_ip;
	}

	public void setClient_ip(String client_ip) {
		this.client_ip = client_ip;
	}

	public String getT0() {
		return t0;
	}

	public void setT0(String t0) {
		this.t0 = t0;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public String getThird_order_id() {
		return third_order_id;
	}

	public void setThird_order_id(String third_order_id) {
		this.third_order_id = third_order_id;
	}

	public String getShop_no() {
		return shop_no;
	}

	public void setShop_no(String shop_no) {
		this.shop_no = shop_no;
	}

	public String getPos_no() {
		return pos_no;
	}

	public void setPos_no(String pos_no) {
		this.pos_no = pos_no;
	}

	public String getAttach() {
		return attach;
	}

	public void setAttach(String attach) {
		this.attach = attach;
	}

	public String getLimit_pay() {
		return limit_pay;
	}

	public void setLimit_pay(String limit_pay) {
		this.limit_pay = limit_pay;
	}

	public String getGoods_tag() {
		return goods_tag;
	}

	public void setGoods_tag(String goods_tag) {
		this.goods_tag = goods_tag;
	}

	public String getOrder_expiration() {
		return order_expiration;
	}

	public void setOrder_expiration(String order_expiration) {
		this.order_expiration = order_expiration;
	}

	public String getSn() {
		return sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	@Override
	public String toString() {
		return "LeshuaScanCodePayReq [pay_way=" + pay_way + ", amount="
				+ amount + ", jspay_flag=" + jspay_flag + ", sub_openid="
				+ sub_openid + ", notify_url=" + notify_url + ", jump_url="
				+ jump_url + ", client_ip=" + client_ip + ", t0=" + t0
				+ ", body=" + body + ", appid=" + appid + ", third_order_id="
				+ third_order_id + ", shop_no=" + shop_no + ", pos_no="
				+ pos_no + ", attach=" + attach + ", limit_pay=" + limit_pay
				+ ", goods_tag=" + goods_tag + ", sn=" + sn + "]";
	}

}
